﻿/*
 * ICloneable.cs - A generic, strongly-typed, cloneable object.
 *
 * Copyright (C) 2008 Trey Tomes
 *
 * This file is part of Desktop.
 * 
 * Desktop is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * Desktop is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Desktop.  If not, see http://www.gnu.org/licenses/.
 */

using System;

namespace Desktop.Interfaces
{
    /// <summary>
    /// A generic, strongly-typed, cloneable object.
    /// </summary>
    /// <typeparam name="T">The name of the class to be cloned.</typeparam>
    public interface ICloneable<T> : ICloneable
        where T : class, ICloneable
    {
        #region Methods

        /// <summary>
        /// Creates a new object that is a copy of the current instance.
        /// </summary>
        /// <returns>A new object that is a copy of this instance.</returns>
        new T Clone();

        #endregion
    }
}